package com.sitech.portal.system.service.impl;

import java.util.List;

import com.sitech.portal.system.dao.ISysUserRoleDao;
import com.sitech.portal.system.domain.TblSYS_LOGINMSG;
import com.sitech.portal.system.domain.TblSYS_USER_ROLE;
import com.sitech.portal.system.service.ISysUserRoleService;

public class SysUserRoleServiceImpl implements ISysUserRoleService {

	private ISysUserRoleDao sysUserRoleDao;
	
	public ISysUserRoleDao getSysUserRoleDao() {
		return sysUserRoleDao;
	}

	public void setSysUserRoleDao(ISysUserRoleDao sysUserRoleDao) {
		this.sysUserRoleDao = sysUserRoleDao;
	}

	@Override
	public void add(TblSYS_LOGINMSG curUser, String[] roleId,
			TblSYS_LOGINMSG user) {
		// TODO Auto-generated method stub
		sysUserRoleDao.add(curUser, roleId, user);
	}

	@Override
	public void deleteByUserId(String[] id) {
		// TODO Auto-generated method stub
		sysUserRoleDao.deleteByUserId(id);
	}

	@Override
	public void deleteSelectedByUser(String[] id, TblSYS_LOGINMSG user) {
		// TODO Auto-generated method stub
		sysUserRoleDao.deleteSelectedByUser(id, user);
	}

	@Override
	public List findRoleListByUserId(String userId) {
		// TODO Auto-generated method stub
		return sysUserRoleDao.findRoleListByUserId(userId);
	}

	@Override
	public TblSYS_USER_ROLE get(String s, String s1) {
		// TODO Auto-generated method stub
		return sysUserRoleDao.get(s, s1);
	}

	@Override
	public void update(TblSYS_USER_ROLE tblSYS_USER_ROLE) {
		// TODO Auto-generated method stub
		sysUserRoleDao.update(tblSYS_USER_ROLE);
	}

}
